/**
 * 
 */
package it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events;

import it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.GUIDStorage;

import org.json.simple.JSONObject;

/**
 * @author Massimo Canonaco
 *
 */
public class EndActionEvent implements GenericEvent {
	
	/** */
	static public final float GUID = GUIDStorage.END_ACTION_EVENT;
	
	/* (non-Javadoc)
	 * @see it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events.GenericEvent#getGUID()
	 */
	@Override
	public float getGUID() 
	{
		return GUID;
	}

	/* (non-Javadoc)
	 * @see it.unical.canonaco.rende.igpe.game.cbv.logiclayer.engine.events.GenericEvent#getName()
	 */
	@Override
	public String getName() 
	{
		return "EndActionEvent";
	}

	@SuppressWarnings("unchecked")
	@Override
	public JSONObject getAsJSONObject() 
	{
		JSONObject object = new JSONObject();
		object.put(GLOBAL_GUID_KEY, GUID);
		object.put(getName(), "helloworld");
		return object;
	}

	@Override
	public void setFromJSONOnbject(JSONObject object) 
	{
		
	}
	
}
